package manager.dao.impl;

import java.util.List;

import manager.dao.MessageDAO;
import manager.dao.UserDAO;
import manager.vo.Message;

import org.apache.ibatis.session.SqlSession;

public class MessageDAOImpl implements MessageDAO{
	private MessageDAO messageDAO = null;
	public MessageDAOImpl(SqlSession session) throws Exception{
		this.messageDAO = session.getMapper(MessageDAO.class);
	}
	@Override
	public List<Message> selectMessage(Integer userid) throws Exception {
		List<Message> list = this.messageDAO.selectMessage(userid);
		return list;
	}
	
}
